package com.warm.pump.frame.gen.bean;

import java.io.Serializable;
import java.util.List;

public class PageBean implements Serializable{

	private Integer count = 0;
	private Integer pageNo = 1;
	private Integer pageSize = 10;
	private Integer pageCount;
	private List data;
	
	public List getData() {
		return data;
	}

	public void setData(List data) {
		this.data = data;
	}

	public Integer getPageNo() {
		return pageNo;
	}

	public void setPageNo(Integer pageNo) {
		if(pageNo==null){
			return;
		}
		this.pageNo = pageNo;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		if(pageSize==null){
			return;
		}
		this.pageSize = pageSize;
	}

	public Integer getStartNo() {
		return (pageNo -1) * pageSize;
	}
	public Integer getPageCount(){

		if (count % pageSize == 0)
			pageCount = (count / pageSize);
		else
			pageCount = (count / pageSize + 1);
		return pageCount;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}
}
